import request from '@/utils/request';

// 根据表名查询表周期信息
export function queryTableSaveCycleInfoByName(name: string): ApiPromise {
	return request({
		url: '/business-monitor/home/index/queryTableSaveCycleInfoByName/' + name,
		method: 'get',
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 查询系统访问量趋势
export function querySystemVisitTrend(data: any): ApiPromise {
	return request({
		url: '/business-monitor/home/index/querySystemVisitTrend',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 查询系统访问量趋势
export function querySystemAvgDealTimeTrend(data: any): ApiPromise {
	return request({
		url: '/business-monitor/home/index/querySystemAvgDealTimeTrend',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 查询系统访问量趋势
export function querySystemHealthRatioTrend(data: any): ApiPromise {
	return request({
		url: '/business-monitor/home/index/querySystemHealthRatioTrend',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 查询系统访问量趋势
export function querySystemAlarmTrend(data: any): ApiPromise {
	return request({
		url: '/business-monitor/home/index/querySystemAlarmTrend',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'lishilei',
		},
	});
}
